home *** CD-ROM | disk | FTP | other *** search
/ Stolen Data 3 / Stolen Data 3.adf / MAG-TEXT / CODE5b < prev    next >
Text File  |  1989-01-01  |  1KB  |  31 lines

  1. of  the  display  buffer into the front
  2. end of the update buffer, then plot the
  3. new   characters   into  the  remaining
  4. section.  The scroll counter runs up to
  5. 256   pixels  (32  bytes)  which  means
  6. copying the remaining 48 bytes.  I copy
  7. 4  bytes per line every frame, so for a
  8. 16*16  scroller  in  one  bitplane this
  9. involves  a  copy  of just 32 words (64
  10. bytes)  with  the blitter, and it takes
  11. 12 frames to copy the lot.  Then we get
  12. to  plotting  the new characters, again
  13. assuming   a   16*16  font,  I  plot  2
  14. characters  a frame and we need 32/2=16
  15. of these so it takes 8 frames to finish
  16. the plotting procedure.
  17.     In order to plot the new characters
  18. we  have  a  pointer  to the scrolltext
  19. which  is  incremented  each frame, and
  20. set  back to the start when a zero byte
  21. is  detected.  Fonts can be stored in a
  22. number  of  ways.  Some people advocate
  23. the  method  of  storing each character
  24. below  the  previous.  To calculate the
  25. position  of  a  particular  letter  or
  26. symbol  you multiply the character code
  27. by a constant factor, the size of every
  28. character.  The main difficulty here is
  29. putting   the  font  into  the  correct
  30. format  in  the  first  place but there
  31.